import React, { Suspense } from "react";

const LazyLoad = (props) => {
  return (
    <Suspense fallback={<div>loading...</div>}>{props.component}</Suspense>
  );
};

export default LazyLoad;
